package com.hmall.client.trade;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "trade-service")
public interface TradeClient {

    @PutMapping("/orders/{orderId}")
    void markOrderPaySuccess(@PathVariable("orderId") Long orderId);

    @GetMapping("inner/{orderId}")
    Integer getStatus(@PathVariable("orderId") Long orderId);

    @PutMapping("inner/orders/{orderId}")
    void  putStatus(@PathVariable("orderId") Long orderId,@RequestParam("status") Integer status);

    @DeleteMapping("inner/order/delete")
    void  removeOrder(@RequestParam Long orderId);
}
